package cn.flexui.flexuiserver.domain.constant.enums;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wanmingyu
 * @create 2024/9/21 19:15
 */
@Getter
@AllArgsConstructor
public enum RedisKeyEnum {

    CHAT_MEMORY("chat_memory:{}", "聊天记录缓存"),
    ;
    private final String key;

    private final String desc;

    public String getKey(Object... key) {
        return StrUtil.format(this.key, key);
    }
}
